import Vue from 'vue'
import Router from 'vue-router'
import Home from './components/Home.vue'
import NewsList from './components/NewsList.vue'
import NewsDetail from './components/NewsDetail.vue'
import PhotoList from './components/PhotoList.vue'
import PhotoInfo from './components/PhotoInfo.vue'
import GoodsList from './components/GoodsList.vue'
import GoodsDetail from './components/GoodsDetail.vue'
import Search from './components/Search.vue'
import Coupon from './components/Coupon.vue'
import Contact from './components/Contact.vue'
import Member from './components/Member.vue'
import AMap from './components/AMap.vue'
import FormValidate from './components/FormValidate.vue'
import ShopCar from './components/ShopCar.vue'
Vue.use(Router)

export default new Router({
  routes: [
    {path:'/',redirect:'/home'},
    {path:'/home',component:Home},
    {path:'/newslist',component:NewsList},
    {path:'/newsdetail/:id',component:NewsDetail},
    {path:'/photolist',component:PhotoList},
    {path:'/photoinfo/:id',component:PhotoInfo},
    {path:'/goodslist',component:GoodsList},
    {path:'/goodsdetail/:id',component:GoodsDetail},
    {path:'/search',component:Search},
    {path:'/coupon',component:Coupon},
    {path:'/contact',component:Contact},
    {path:'/member',component:Member},
    {path:'/map',component:AMap},
    {path:'/form-validate',component:FormValidate},
    {path:'/shopcar',component:ShopCar}
  ]
})
